import React from 'react'
import * as echarts from 'echarts'
import "../../../node_modules/echarts/map/js/china.js"
import option from '../../public/china-pay-map'
import './Demand.less'
export default class Demand extends React.Component {
    constructor() {
        super()

    }

    componentDidMount() {
        const chinachart = echarts.init(document.getElementById('ChinaChartMain'))
        chinachart.setOption(option)
    }

    render() {
        return (
            <div className="chartMain">
                <div id="ChinaChartMain" style={{width:'100%', height:'500px'}}></div>
            </div>
        )
    }
}